<?php
require_once(TCPDF.'config/lang/eng.php');
require_once(TCPDF.'tcpdf.php');
/**
 * 
 *
 * @access public
 * @author Marcos Vinicius Pereira dos Santos, <marcos@eagletecnologia.com>
 * @version 1.0
 * @package PHPJasperReport
 * @subpackage Core
 */
class FactoryReportGenerator {
   
    /**    
     * @access public    
     * @param  String $format
     * @return ReportGenerator
     */
    public function getInstance($format){
        $returnValue = null;

        switch($format){
            case "PDF":
                require_once(GENERATORS.'class.PDFReport.php');
                $returnValue = new PDFReport();
                break;
            default:
                require_once(GENERATORS.'class.PDFReport.php');
                $returnValue = new PDFReport();
                break;
        }

        return $returnValue;
    }
} 
?>